package org.example;

public class MyApplication {
    public static void main(String[] args) {
        ApplicationContext context = new ApplicationContext(MyConfig.class);
        MyService myService = (MyService) context.getBean("myService");
        myService.test();
        MeService meService = (MeService) context.getBean("meService");
        meService.test();

/*      System.out.println(context.getBean("myService"));
        System.out.println(context.getBean("myService"));
        System.out.println(context.getBean("myService"));
        System.out.println(context.getBean("myService"));*/
    }
}
